SmartPill ingestion and monitoring